import { action, observable } from 'mobx';

class MobxTestStore {
  @observable title = '';
  @observable list = [];
  @action handleAdd = () => {
    console.log('add');
    this.list.push(1);
  };
  @action handleDelete = () => {
    console.log('delete');
    this.list.pop();
  };
}

const mobxTestStore = new MobxTestStore();

export default mobxTestStore;
